Skip to content

ci(arch): enforce import-linter core boundary and pyright on execution/reconciliation - #809

Merged
Pigbibi merged 2 commits into
mainfrom
feat/ci-pyright-and-importlinter
Nov 23, 2026
Merged

Pigbibi merged 2 commits into
mainfrom
feat/ci-pyright-and-importlinter

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

AI assistance

  • Tool: Antigravity

What changed

  • Added .importlinter enforcing ADR 0001 boundary: risk, position_sizing, execution, and reconciliation cannot import broker adapters, cloud, or notifications (8 legacy imports explicitly frozen).
  • Added pyrightconfig.json (basic mode) covering src/quant_platform_kit/execution and src/quant_platform_kit/reconciliation.
  • Wired lint-imports and pyright into .github/workflows/ci.yml.

How verified

  • uvx pyright (0 errors)
  • PYTHONPATH=src uvx --from import-linter lint-imports (1 kept, 0 broken)

Why

  • Turn ADR 0001 architecture boundaries and type checks into deterministic CI gates without breaking legacy modules.

Risk

  • R2 (modifies .github/workflows/ci.yml and adds CI config files).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T19:58:46.068190Z 3a68105 Manual request
🔒 Security Review ✅ Completed 2026-11-22T20:01:41.084806Z 3a68105 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f80724d82

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pyrightconfig.json Resolved
@Pigbibi
Pigbibi force-pushed the feat/ci-pyright-and-importlinter branch from 0f80724 to 3a68105 Compare November 22, 2026 19:54
@Pigbibi

Pigbibi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 22, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 3a68105bb8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 3a68105bb8

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi

Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

@qsl-ai-reviewer review

@qsl-ai-reviewer

Copy link
Copy Markdown

AI Code Review (opencode / google/gemini-4-hydrogen)

Adds import-linter architecture boundary enforcement (.importlinter), basic Pyright configuration (pyrightconfig.json) for execution and reconciliation modules, and corresponding CI steps in .github/workflows/ci.yml. No high or medium severity issues found.

Reviewed commit: 093bff7962 · Coverage: complete · Unresolved findings: false

Findings

  • [LOW] pyrightconfig.json: pythonVersion is set to "3.11" while AGENTS.md specifies Python 3.10+ support; setting "3.10" would catch accidental 3.11-only typing/syntax usage in covered modules.
  • [LOW] .github/workflows/ci.yml: import-linter and pyright are installed unpinned, and AGENTS.md local checks were not updated to list them; future major releases of either tool could break CI unexpectedly without local parity.

@Pigbibi Pigbibi added agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation and removed agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation labels Nov 23, 2026
@Pigbibi
Pigbibi merged commit d1f2b89 into main Nov 23, 2026
16 of 18 checks passed
@Pigbibi
Pigbibi deleted the feat/ci-pyright-and-importlinter branch November 23, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant